package com.shunda.ysdgj.model.vo.goods;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Schema(description = "获取商品Sku")
public class GoodsSkuVo {
    private Long id;

    @Schema(description = "所属产品ID")
    private Long spuId;

    @Schema(description = "所属产品名称")
    private String spuTitle;

    @Schema(description = "商品标题")
    private String skuTitle;

    @Schema(description = "商品展示图片")
    private String skuImages;

    @Schema(description = "商品售价 用户实际购买的价格")
    private BigDecimal skuPrice;

    @Schema(description = "商品市场价 仅展示用")
    private BigDecimal skuMarketPrice;

    @Schema(description = "商品规格")
    private String skuSpec;

    @Schema(description = "商品上下架")
    private Integer skuSaleable;

    @Schema(description = "商品是否有效")
    private Integer skuValid;

    @Schema(description = "商品销量")
    private Long skuSaleNum;

    @Schema(description = "商品库存")
    private Long skuStockNum;

    @Schema(description = "修改时间")
    private LocalDateTime updated;

    private Integer version;
}
